﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace diploma.core.data.objects
{
    public class ObjectType : DataObject
    {
        public ObjectType(long _id, string _title)
            : base(_id, _title)
        {
        }

        public string Title
        {
            get
            {
                return textField;
            }
        }

        public void SetTitle(string _value, bool _innerDataSourceChanges)
        {
            SetTextField(_value, _innerDataSourceChanges);
        }

        public void SetTitle(string _value)
        {
            SetTextField(_value);
        }
        //

        public override DataObjectTypes Type
        {
            get
            {
                return DataObjectTypes.ObjectType;
            }
        }
    }
}
